package dao

import (
	"gostore/model"
)

type SystemUserTaskT struct {
	DaoT
}

var SystemUserTaskDao = SystemUserTaskT{}

func (this SystemUserTaskT) ListByLevelId(id int) (r []*model.SystemUserTask, err error) {

	db := GetDB()

	r = make([]*model.SystemUserTask, 0)

	err = db.Where("level_id = ?", id).Find(&r).Error
	return
}
